package com.sport.facilities.booking.system.htmlchecker;

import android.util.Log;

public class TransferBookingFormResultChecker extends BasicChecker {
	private final String TAG = "TransferBookingFormResultChecker";

	public boolean getTransferBookingFormResultfromHtml(String transferBookingFormResultHtml) {
		Log.d(TAG, transferBookingFormResultHtml);
		//boolean bkchecker = cancelBookingResultHtml
		//		.matches(".*\\bYour booking is cancelled\\b.*");
		
		boolean tbfchecker = transferBookingFormResultHtml.contains("Your transfer is successful");
		
		Log.d(TAG, "Transfer Success ? "+tbfchecker);
		return tbfchecker;
	}

	/*
	 * HTML PATTERN : 
<form name='mainform'>
<TABLE border=0 width=579>
  <TR>
      <TD colSpan=4><img height=30 src='/saosport/image/t_transfer.gif' width=580 onMouseDown="openhelp('/saosport/menu/webguide.htm#transferbook','','toolbar=yes,scrollbars=yes')"></TD>
    </TR>
<tr><td width=1%></td><td width=1%><P><FONT size=3><B>&nbsp;</B></FONT></P></td> <td><P><FONT size=3><B>Your transfer is successful.</B></FONT></P></td></tr>
  </TR>
  <TR>
<tr><td width=1%></td><td width=1%><P><FONT size=3><B></B></FONT></P></td> <td><P><FONT size=3><B><input type='button' name='Submit2' value='Back' onClick=goToURL();></B></FONT></P></td></tr>
  </TR>
</TABLE>
</form>
</body>
</html>

	 */
}
